import 'package:json_annotation/json_annotation.dart';

part 'EcyLocationModel.g.dart';

@JsonSerializable()
class EcyLocationModel {
  String? id;
  String? lng;
  String? lat;
  String? provinceName;
  String? provinceId;
  String? cityName;
  String? cityId;
  String? areaName;
  String? areaId;
  String? streetName;
  String? streetId;
  String? detail;
  String? contact;
  String? phone;
  int? addressDefault;

  EcyLocationModel();

  // 从JSON创建User实例的工厂方法
  factory EcyLocationModel.fromJson(Map<String, dynamic> json) =>
      _$EcyLocationModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyLocationModelToJson(this);
}
